.legend {
    height: 100%;
    overflow: hidden;
    overflow-y: auto;
}